﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WcfService1
{
    public partial class CloudService
    {
        public int NoOfInstances { get; set; }

        // method to calclate saving
        public double Saving(double cost)
        {
            double saving = cost - (double)this._MonthlyCost;
            return saving;
        }

        // total cost = monthly cost x no of instances
        public double TotalCost { get; set; }

        public void GetTotalCost(double noOfInst)
        {
            this.TotalCost = (double)this.MonthlyCost * noOfInst;
        }
               

    }
}